package com.xmx.service;

import com.xmx.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jianzi
 * @since 2022-08-10
 */
public interface IUserService extends IService<User> {
    //1.用户登录
    User userlogin( String username, String password);
    //2用戶注冊
    int userregist(User user);
    //3用戶显示
    List<User> findAll();
    //4.删除
    int delete(Integer uid);
    //5.更新
    int update(Integer uid);
    //6.查找id
    User findbyid(@Param("uid")Integer uid);
}
